package com.qen.sheji.gongchang;

public class SimpleFactory {

    public Sofa createCoffee(String type) {
        var sofa = (Sofa) null;
        if ("us".equals(type)) {
            sofa = new AmericaSofa();
        } else if ("cn".equals(type)) {
            sofa = new ChineseSofa();
        }
        return sofa;
    }

}
